This refers to God appearing to Jacob at Luz in Canaan, called Bethel. God was with Jacob without his realizing it (Genesis 28:16). In Genesis 28, Jacob came to this place after surviving his encounter with Esau, and in Genesis 35 he fled to this place for refuge after his sons made them odious by killing the sons of Hamor. In reverence Jacob built an altar and anointed it with oil.
Genesis 28:11–22
And [Jacob] came to a certain place and stayed there that night, because the sun had set. Taking one of the stones of the place, he put it under his head and lay down in that place to sleep. And he dreamed, and behold, there was a ladder set up on the earth, and the top of it reached to heaven. And behold, on it! And behold, the LORD stood above it and said, "I am the LORD, the God of Abraham your father and the God of Isaac. The land on which you lie I will give to you and to your offspring. Your offspring shall be like the dust of the earth, and you shall spread abroad to the west and to the east and to the north and to the south, and in you and your offspring shall all the families of the earth be blessed. Behold, I am with you and will keep you wherever you go, and will bring you back to this land. For I will not leave you until I have done what I have promised you." Then Jacob awoke from his sleep and said, "Surely the LORD is in this place, and I did not know it." And he was afraid and said, "How awesome is this place! This is none other than the house of God, and this is the gate of heaven." So early in the morning Jacob took the stone that he had put under his head and set it up for a pillar and poured oil on the top of it. He called the name of that place Bethel, but the name of the city was Luz at the first. Then Jacob made a vow, saying, "If God will be with me and will keep me in this way that I go, and will give me bread to eat and clothing to wear, so that I come again to my father's house in peace, then the LORD shall be my God, and this stone, which I have set up for a pillar, shall be God's house. And of all that you give me I will give a full tenth to you."
Genesis 48:3–4, 9, 11, 21
And Jacob said to Joseph, "God Almighty appeared to me at Luz in the land of Canaan and blessed me, and said to me, 'Behold, I will make you fruitful and multiply you, and I will make of you a company of peoples and will give this land to your offspring after you for an everlasting possession....'"
Joseph said to his father, "They are my sons, whom God has given me here...."
And Israel said to Joseph, "I never expected to see your face; and behold, God has let me see your offspring also...."
Then Israel said to Joseph, "Behold, I am about to die, but God will be with you and will bring you again to the land of your fathers...."
Genesis 50:5, 12-13
"My father made me swear, saying, 'I am about to die: in my tomb that I hewed out for myself in the land of Canaan, there shall you bury me.' Now therefore, let me please go up and bury my father. Then I will return...."
Thus his sons did for him as he had commanded them, for his sons carried him to the land of Canaan and buried him in the cave of the field at Machpelah, to the east of Mamre, which Abraham bought with the field from Ephron the Hittite to possess as a burying place.